package com.qkl.xiatang.app.utils.appenum;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@Getter
public enum PondGroupTypeEnum {

    FEED(1,"配料"),
    ZOO(2,"动保"),
    ;

    private PondGroupTypeEnum(Integer type,String name){
        this.type = type;
        this.name = name;
        EnumUtil.typeMap.put(type,this);
    }

    private Integer type;

    private String name;

    private static  class EnumUtil{
        public static Map<Integer,PondGroupTypeEnum> typeMap = new HashMap<>();
    }
}
